<template>
    <div class="child">
        <h3>我是child组件</h3>
        <Son />
    </div>
</template>

<script setup lang="ts">
    import Son from './Son.vue'
    import {inject} from 'vue'
    let x = inject('car')
    console.log(x,'child------')
</script>

<style scoped lang="less">

</style>
